﻿
//perform string interpolation on s
function Subst(s) {
    return s.replace(/\{([^}]+)\}/g, function (dummy, v) {
                        return eval(v);
                    });
}